package QuestionNum_19_4;

import java.util.HashSet;
import java.util.Set;

public class QuestionNum_19_4_hxj {
    public static void main(String[] args) {
        String str = "goOd gooD stUdy dAy dAy up";
        str = convertStandard_hxj(str);
        System.out.println(str);
    }

    private static String convertStandard_hxj(String str) {
        String strStandard = "";
        String[] strs = str.split(" ");
        for(String s : strs){
            s = s.toLowerCase();
            String first = s.substring(0, 1).toUpperCase();
            s = first + s.substring(1, s.length());
            strStandard = strStandard + s + " ";
        }
        return strStandard;
    }
}
